From: Paul Donald Date: Sat, 23 Nov 2024 23:31:08 +0000 (+0100) Subject: luci-app-firewall: implement cloneable for all tabs (except zones) X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=03c028cb7f04f713155c436ece985329fcd4b9e2;p=project%2Fluci.git luci-app-firewall: implement cloneable for all tabs (except zones) This enables cloning of individual rules, forwards, etc where one wishes to make similar entries rapidly. Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js index 70713be599..34ab804257 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js @@ -156,6 +156,7 @@ return view.extend({ s.addremove = true; s.anonymous = true; s.sortable = true; + s.cloneable = true; s.tab('general', _('General Settings')); s.tab('advanced', _('Advanced Settings')); diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js index 40d47cb2e4..f7813a85a4 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js @@ -33,6 +33,7 @@ return view.extend({ s.addremove = true; s.anonymous = true; s.sortable = true; + s.cloneable = true; s.nodescriptions = true; diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js index b727f4e798..f51f92bf68 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js @@ -177,6 +177,7 @@ return view.extend({ s.addremove = true; s.anonymous = true; s.sortable = true; + s.cloneable = true; s.tab('general', _('General Settings')); s.tab('advanced', _('Advanced Settings')); diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js index 8c05e1f2de..a700475e49 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js @@ -176,6 +176,7 @@ return view.extend({ s.addremove = true; s.anonymous = true; s.sortable = true; + s.cloneable = true; s.tab('general', _('General Settings')); s.tab('advanced', _('Advanced Settings'));